Proxies help hibernate implement other features, like lazy loading 代理帮助hibernate实现一些其他的特性,比如懒散加载(lazyloading)。
For example, kodo jdo has far better error messages and more predictable behavior around some of the edge cases, like managing lazy loading 例如,对于一些边缘情况,比如管理懒散加载,kodojdo有非常好的错误信息和更加可预测的行为。
What we will try to accomplish here is to create unique interface for traversing arrays and to add a little more control over how our objects are created and finally, to support lazy loading 我们要在这里试着完成的是为遍历数组和在如何创建对象上加入一点额外的控制去创建一个唯一的接口,最后去支持傻瓜式的读取。
With the lazy load improvements, data for each page is read when the page is accessed, avoiding performance degradation, and greatly increasing the number of pages that a single portal can host 借助延迟加载改进功能,每个页面的数据均在访问该页面时加载,从而避免了性能下降,并大幅度增加了单个门户中可以驻留的页面的数量。